import { configureStore } from '@reduxjs/toolkit'
import appSlice from './models/app'

const store = configureStore({
  reducer: {
    app: appSlice,
  },
  middleware: (getDefaultMiddleware: any) => {
    return getDefaultMiddleware({
      serializableCheck: {
        ignoredActions: ['app/handlingDialogs'],
        ignoredPaths: ['app.confirmDialog']
      }
    })
  }
})

export type RootState = ReturnType<typeof store.getState> 
export default store
